duration = 60 #min
start_dst_port = 5201
#src, dst, type, throughput(mbps)

slice_types={
    0:"时延敏感",
    1:"吞吐敏感",
    2:"时延吞吐敏感",
    3:"时延丢包敏感"
}

service2slice_type={
    "movie":1,
    "music":0,
    "live_video":2,
    "live_game":3,
    "voice_call":0,
    "email_web":2
}

throughput = [80,250,350,120]

cases = [
    # demonstrated flows
    # (10,1,2,45),
    # (7,18,1,45),

    # background flows
    (8,19,"voice_call",0,throughput[0]),
    (8,19,"movie",1,throughput[1]),
    (8,19,"live_video",2,throughput[2]),
    (8,19,"live_game",3,throughput[3]),

    (19,8,"music",0,throughput[0]),
    (19,8,"movie",1,throughput[1]),
    (19,8,"email_web",2,throughput[2]),
    (19,8,"live_game",3,throughput[3]),

    (8,13,"voice_call",0,throughput[0]),
    (8,13,"movie",1,throughput[1]),
    (8,13,"live_video",2,throughput[2]),
    (8,13,"live_game",3,throughput[3]),

    (13,8,"music",0,throughput[0]),
    (13,8,"movie",1,throughput[1]),
    (13,8,"email_web",2,throughput[2]),
    (13,8,"live_game",3,throughput[3]),

    (13,4,"voice_call",0,throughput[0]),
    (13,4,"movie",1,throughput[1]),
    (13,4,"live_video",2,throughput[2]),
    (13,4,"live_game",3,throughput[3]),

    (4,13,"music",0,throughput[0]),
    (4,13,"movie",1,throughput[1]),
    (4,13,"email_web",2,throughput[2]),
    (4,13,"live_game",3,throughput[3]),

    (8,3,"voice_call",0,throughput[0]),
    (8,3,"movie",1,throughput[1]),
    (8,3,"live_video",2,throughput[2]),
    (8,3,"live_game",3,throughput[3]),

    (3,8,"music",0,throughput[0]),
    (3,8,"movie",1,throughput[1]),
    (3,8,"email_web",2,throughput[2]),
    (3,8,"live_game",3,throughput[3]),

    (8,13,"voice_call",0,throughput[0]),
    (8,13,"movie",1,throughput[1]),
    (8,13,"live_video",2,throughput[2]),
    (8,13,"live_game",3,throughput[3]),

    (13,8,"music",0,throughput[0]),
    (13,8,"movie",1,throughput[1]),
    (13,8,"email_web",2,throughput[2]),
    (13,8,"live_game",3,throughput[3]),

    # (13,4,0,80),
    # (13,4,1,250),
    # (13,4,2,350),

    # (8,13,0,80),
    # (8,13,1,250),
    # (8,13,2,350),
    # (8,13,3,120),

    # (13,8,0,80),
    # (13,8,1,250),
    # (13,8,2,350),
    # (13,8,3,120)

    # #######################
    # # 3-16卡死，16-3卡死
    # (13,4,0,80),
    # (13,4,1,250),
    # (13,4,2,350),
    # (13,4,3,120),
    
    # (4,13,0,80),
    # (4,13,1,250),
    # (4,13,2,350),
    # (4,13,3,120),
    # # ########################
    # # # 9-14, 13-14卡死
    # (9,13,0,80),
    # (9,13,1,250),
    # (9,13,2,350),
    # (9,13,3,120),

    # # (9,13,0,320),
    # # (9,13,1,1000),
    # # (9,13,2,1400),
    # # (9,13,3,480),

    # (13,9,0,80),
    # (13,9,1,250),
    # (13,9,2,350),
    # (13,9,3,120),

    
]
